﻿using Ecommerce.Domain.User;
using Ecommerce.Repository;
using Ecommerce.Repository.Interface.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ecommerce.Repository.Impl.Use
{
    public class CityRepository : BaseRepository<City>, ICityRepository
    {
        public CityRepository(EFContext context) : base(context)
        {
        }
        public async Task<List<City>> GetCities()
        {
            return await GetAllAsync();
        }
        public async Task<List<City>> GetCity(int Cid)
        {
            return await GetAsync(w => w.Cid == Cid);
        }
    }
}
